import request from '@/service'
import { HomeAPI } from './apiEnums'
const { LIST, ADD, UPDATE, DETAIL, DELTE } = HomeAPI

/** 封装 Protable 组件测试用的 */
export const getTableListData = (params: any) => {
  return request.get<any>(LIST, params)
}

export const addTableListData = (params: any) => {
  return request.post<any>(ADD, params)
}

export const updateTableLisData = (params: any) => {
  return request.put<any>(UPDATE, params)
}

export const detailTableLisData = (params: any) => {
  return request.get<any>(DETAIL + params)
}

export const deleteTableLisData = (id: any) => {
  return request.delete<any>(`${DELTE}${id}`)
}
